package com.business.sys.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 行业分类表 实体类
 * @author generator
 * @date 2019-11-29 13:55:01
 * @since 1.0
 */
@TableName(value = "sys_industry_category")
public class IndustryCategory {


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 编码
	 */
	private String code; 

	/**
	 * 名称
	 */
	private String name; 

	/**
	 * 夫id
	 */
	@TableField(value = "parent_id")
	private Integer parentId; 

	/**
	 * 夫类编码
	 */
	@TableField(value = "parent_code")
	private String parentCode; 

	/**
	 * 状态 1：正常 0：隐藏
	 */
	private Integer state; 

	/**
	 * 说明
	 */
	private String explain;

	/**
	 * 子列表
	 */
	@TableField(exist = false)
	private List<Area> sublist;
	// columns END

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getCode() {
		return code;
	}

    public void setCode(String code) {
    	this.code = code;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public Integer getParentId() {
		return parentId;
	}

    public void setParentId(Integer parentId) {
    	this.parentId = parentId;
    }
	public String getParentCode() {
		return parentCode;
	}

    public void setParentCode(String parentCode) {
    	this.parentCode = parentCode;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }
	public String getExplain() {
		return explain;
	}

    public void setExplain(String explain) {
    	this.explain = explain;
    }

	public List<Area> getSublist() {
		return sublist;
	}

	public void setSublist(List<Area> sublist) {
		this.sublist = sublist;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[code:" + getCode() + "]";
		log += "[name:" + getName() + "]";
		log += "[parentId:" + getParentId() + "]";
		log += "[parentCode:" + getParentCode() + "]";
		log += "[state:" + getState() + "]";
		log += "[explain:" + getExplain() + "]";
		return log;
	}
}